package net.njcp.channel;

/**
 * @ClassName EChannelType
 * @Description: TODO
 * @Author 柳拓
 * @Date 2019/8/22
 * @Version V1.0
 **/
public enum EChannelType {
    UNKNOWN(0, ""),

    ETHERNET(1, "ETHERNET"),

    SERIAL_PORT(2, "SERIAL_PORT"),

    DIAL(3, "DIAL"),

    LISTENER_SERVER(4, "LISTENER_SERVER"),

    WEB_SERVICE(5, "WEB_SERVICE"),

    JDBC_Mysql_SERVICE(6, "MysqlService"),

    JDBC_Oracle_SERVICE(7, "OracleService");

    private int value;

    //要和实现类保持一致
    private String name;

    EChannelType(int value, String name) {
        // TODO Auto-generated constructor stub
        this.value = value;
        this.name = name;
    }

    public String getName() {
        // TODO Auto-generated method stub
        return name;
    }

    public int getValue() {
        // TODO Auto-generated method stub
        return value;
    }

}
